package person.drf.shop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import person.drf.common.utils.PageUtils;
import person.drf.shop.product.entity.BrandEntity;
import person.drf.shop.product.entity.CategoryBrandRelationEntity;

import javax.validation.constraints.NotEmpty;
import java.util.List;
import java.util.Map;

/**
 * Ʒ
 *
 * @author dengrunfa
 * @email 1270733328@qq.com
 * @date 2020-04-07 15:45:24
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, @NotEmpty(message = "名字不能为空") String name);

    void updateCategory(Long catId, String name);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

